package com.niodata.dp.monitor.core.task.az;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;


public class ExecutorInfo {

  private double remainingMemoryPercent;
  private long remainingMemoryInMb;
  private int remainingFlowCapacity;
  private int numberOfAssignedFlows;
  private Date lastDispatchedTime;
  private double cpuUsage;

  public double getRemainingMemoryPercent() {
    return remainingMemoryPercent;
  }

  public void setRemainingMemoryPercent(double remainingMemoryPercent) {
    this.remainingMemoryPercent = remainingMemoryPercent;
  }

  @JsonProperty(value = "remainingMemoryInMB")
  public long getRemainingMemoryInMb() {
    return remainingMemoryInMb;
  }

  @JsonProperty(value = "remainingMemoryInMB")
  public void setRemainingMemoryInMb(long remainingMemoryInMb) {
    this.remainingMemoryInMb = remainingMemoryInMb;
  }

  public int getRemainingFlowCapacity() {
    return remainingFlowCapacity;
  }

  public void setRemainingFlowCapacity(int remainingFlowCapacity) {
    this.remainingFlowCapacity = remainingFlowCapacity;
  }

  public int getNumberOfAssignedFlows() {
    return numberOfAssignedFlows;
  }

  public void setNumberOfAssignedFlows(int numberOfAssignedFlows) {
    this.numberOfAssignedFlows = numberOfAssignedFlows;
  }

  public Date getLastDispatchedTime() {
    return lastDispatchedTime;
  }

  public void setLastDispatchedTime(Date lastDispatchedTime) {
    this.lastDispatchedTime = lastDispatchedTime;
  }

  public double getCpuUsage() {
    return cpuUsage;
  }

  public void setCpuUsage(double cpuUsage) {
    this.cpuUsage = cpuUsage;
  }
}
